#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->label->setText("Choose Your Dinner");
    ui->label->setAlignment(Qt::AlignCenter);

    ui->comboBox->addItem("a");
    ui->comboBox->addItem("b");
    ui->comboBox->addItem("c");

    ui->comboBox_2->addItem("aa");
    ui->comboBox_2->addItem("ba");
    ui->comboBox_2->addItem("ca");

    ui->comboBox_3->addItem("ab");
    ui->comboBox_3->addItem("bb");
    ui->comboBox_3->addItem("cb");

    ui->spinBox->setValue(1);
    ui->spinBox_2->setValue(1);
    ui->spinBox_3->setValue(1);

    ui->spinBox->setRange(1,5);
    ui->spinBox_2->setRange(1,5);
    ui->spinBox_3->setRange(1,5);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << ui->comboBox->currentText() << ':'
             << ui->spinBox->value() << ':'
             << ui->comboBox_2->currentText() <<':'
             << ui->spinBox_2->value() << ':'
             << ui->comboBox_3->currentText() << ':'
             << ui->spinBox_3->value();
}
